package Net;


import org.json.JSONException;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

/**
 * Created by apple on 16/8/20.
 */
public interface ResponseHandler<T> {

    //成功回调方法
     void onSuccess(T t) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, IOException, JSONException;

    //失败回调方法
     void onFailure(int code, Error e);

}
